package com.ruoyi.miniapp.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.miniapp.domain.MiniChildInfo;
import com.ruoyi.miniapp.domain.MiniGroupInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 活动报名关联对象 mini_activity_signup
 * 
 * @author duantao
 * @date 2025-09-19
 */
public class ActivitySignupVO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 活动ID */
    @Excel(name = "活动ID")
    private Long activityId;

    /** 报名形式（0-个人报名，1-团队报名） */
    @Excel(name = "报名形式", readConverterExp = "0=-个人报名，1-团队报名")
    private String signUpType;

    /** 孩子ID */
    @Excel(name = "孩子信息")
    private List<MiniChildInfo> children;

    /** 团队信息 */
    @Excel(name = "团队信息")
    private MiniGroupInfo group;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }

    public void setSignUpType(String signUpType) 
    {
        this.signUpType = signUpType;
    }

    public String getSignUpType() 
    {
        return signUpType;
    }

    public List<MiniChildInfo> getChildren() {
        return children;
    }

    public void setChildren(List<MiniChildInfo> children) {
        this.children = children;
    }

    public MiniGroupInfo getGroup() {
        return group;
    }

    public void setGroup(MiniGroupInfo group) {
        this.group = group;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityId", getActivityId())
            .append("signUpType", getSignUpType())
            .append("children", getChildren())
            .append("groupIfo", getGroup())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
